#!/bin/bash
predeploy_dir=/home/ec2-user/deploycode/deploypre

        echo "1) k9pf(online)"
        echo "2) k9pay(online)"
        echo "3) k9ope"
        echo "4) k9openpf(online)"
        echo "5) k9lg(online)"
        echo "6) k9analysis"
        echo "7) k9cs"
        echo "8) k9dev"
        echo "9) k9mail"
        echo "10) k9nba"
        echo "11) k9official"
        echo "12) k9game"
        echo "13) k9forum_us"
        echo "14) k9ope_inner"
read -p "choice deploy application :" app
        [ "x$app" == "x1" ] && app='k9pf'
        [ "x$app" == "x2" ] && app='k9pay'
        [ "x$app" == "x3" ] && app='k9ope'
        [ "x$app" == "x4" ] && app='k9openpf'
        [ "x$app" == "x5" ] && app='k9lg'
        [ "x$app" == "x6" ] && app='k9analysis'
        [ "x$app" == "x7" ] && app='k9cs'
        [ "x$app" == "x8" ] && app='k9developer'
        [ "x$app" == "x9" ] && app='k9mail'
        [ "x$app" == "x10" ] && app='k9nba'
        [ "x$app" == "x11" ] && app='k9official'
        [ "x$app" == "x12" ] && app='k9game'
        [ "x$app" == "x13" ] && app='k9forum_us'
        [ "x$app" == "x14" ] && app='k9ope_inner'

cd $predeploy_dir && ./deploypre.sh $app
##
